//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using System.Collections.Generic;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Mindscape.BackgroundMotion.Model;

namespace Mindscape.BackgroundMotion.Website.Views
{
  /// <summary>
  /// A view to allow new contributions to be added to the system
  /// </summary>
  public interface IAddView : IView
  {
    /// <summary>
    /// The contribution currently being entered in to the system
    /// </summary>
    Contribution Contribution { get; set; }

    /// <summary>
    /// A list of valid content types which can be associated with the new contribution
    /// </summary>
    IList<ContentType> ContentTypes { set; }

    /// <summary>
    /// A list of validation results to be shown in error if there are data entry errors on the contribution
    /// </summary>
    ValidationResults ValidationResults { set; }

    /// <summary>
    /// Conditionally shows the data entry part of the form
    /// </summary>
    void ShowForm();
  }
}